package com.jier.service;

import com.jier.common.Page;
import com.jier.common.Result;
import com.jier.dto.SystemUserParamDto;
import com.jier.entities.SystemUser;

/**
 * 系统用户业务接口
 *
 * @author jie_r
 * @date 2018/03/08
 */
public interface ISystemUserService extends IBaseService<SystemUser> {
    /**
     * 后台登陆
     *
     * @param account
     * @param password
     * @return
     * @throws Exception
     */
    SystemUser login(String account, String password) throws Exception;

    /**
     * 获取系统用户
     *
     * @param param
     * @param page
     * @return
     * @throws Exception
     */
    Result<SystemUser> getSystemUsers(SystemUserParamDto param, Page page) throws Exception;

    /**
     * 通过code获取系统用户
     *
     * @param code
     * @return
     * @throws Exception
     */
    SystemUser getSystemUserByCode(String code) throws Exception;
}
